import QtQuick 1.1
import QtWebKit 1.0


Rectangle {
    id: webArea
    property string link
    border.width: 1
    border.color: "#000000"

    Item {
        id: flickContainer
        anchors.fill: parent

        Flickable {
            id: flickWebView
            clip: true
            anchors.fill: parent
            contentWidth: webView.width;
            contentHeight: webView.height

            Rectangle {
                id: webrect
                width: webArea.width
                height: webArea.height
                border.color: "black"

                WebView {
                    id: webView

                    preferredWidth: parent.width
                    preferredHeight: parent.height
                    url: webArea.link
                    Component.onCompleted: heuristicZoom (10,10,0.1)
               }
            }
        }
    }


}
